package com.example.yk_lx.friend;

import androidx.lifecycle.MutableLiveData;

import com.example.yk_lx.baseMVVM.BaseViewModel;
import com.hyphenate.chat.EMGroup;

import java.util.List;

public class FriendViewModel extends BaseViewModel<FriendRepo> {
    @Override
    protected FriendRepo createRepo() {
        return new FriendRepo();
    }
    public MutableLiveData<List<String>> success = new MutableLiveData<>();
    public MutableLiveData<String> fail = new MutableLiveData<>();

    public void getFriend(){
        repo.getFriend(success,fail);
    }

    public MutableLiveData<List<EMGroup>> groupSuccess = new MutableLiveData<>();
    public MutableLiveData<String> groupFail = new MutableLiveData<>();

    public void getGroup(){
        repo.getGroup(groupSuccess,groupFail);
    }
}
